package ft.ess.util;

public class SpeedUtil
{
	public static String calcSpeed(long size, long dt1, long dt2)
	{
		String ret = "";
		if(size>0 && dt1 != dt2)
		{
			ret = Double.toString( 1000000000D * ((double)(size))/((double)(dt2-dt1)) / 1024D );
		}
		else
		{
			ret = "（无计算）";
		}
		
		return ret;
	}
}
